package com.itzhoun.vo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import com.alibaba.excel.metadata.BaseRowModel;
import com.itzhoun.annation.ExcelSelected;
import io.swagger.v3.oas.annotations.responses.ApiResponse;
import lombok.Data;

import java.io.Serializable;

/**
 * @author 周楠
 * @Date 2022/07/14/下午 9:26
 */
@Data
@ApiResponse(description = "用户数据导入")
@ColumnWidth(22)
@HeadRowHeight(30)
public class UserVO implements Serializable {

    @ExcelProperty(value = "用户名", index = 0)
    private String username;

    @ExcelProperty(value = "身份证号码", index = 1)
    private String idCard;

    @ExcelProperty(value = "年龄", index = 2)
    private Integer age;

    @ExcelSelected(source = {"男人", "女人"})
    @ExcelProperty(value = "男人 女人", index = 3)
    private String gender;

    @ExcelSelected(source = {"木匠工", "水泥工", "钢筋工"})
    @ExcelProperty(value = "工种", index = 4)
    private String workName;

}
